package com.haiyu.manager.dao;

import com.haiyu.manager.pojo.Worker;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;

import java.util.List;

@Repository
public interface WorkerMapper extends MyMapper<Worker> {

    List<Worker> getWorkers(@Param("openId") String openId,@Param("status") Integer status);
    Worker getWorker(@Param("openId") String openId);

    Worker getWorkerById(@Param("id") Integer id);

    int updateWorker(Worker worker);
    int updateWorkerIsAllowed(@Param("id") Integer id, @Param("isAllowed") Integer IsAllowed);

}
